<?php

echo '<div style="margin:8px;float:left;width:80px">Pais: </div><div style="margin:8px">';
mn_field('select', 'ED', 'ocr_Country', $_GET['RCNTR'], "SELECT pai_CodElite AS ID, pai_NombreUSD AS NAME FROM hd_paises", ' ', '', '" disabled readonly="');
echo '</div>';
echo '<div style="margin:8px;clear:both;width:80px;float:left">Provincia: </div><div style="margin:8px">';
mn_field('select', 'ED', 'ocr_Prov', '', "SELECT Prov_ID AS ID, Prov_Provincia AS NAME FROM cp_provincias WHERE Prov_Pais = " . $_GET['RCNTR'], ' ', '', '');
echo '</div>';
echo '<div style="margin:8px;clear:both;width:80px;float:left">Cidade: </div><div style="margin:8px">';
mn_field('select', 'ED', 'ocr_Ciudad', '', "SELECT CiuNumero AS ID, CiuCiudad AS NAME FROM ciudades WHERE CiuPais = " . $_GET['RCNTR'], ' ', '', '');
echo '</div>';
echo '<div style="margin:8px;clear:both;width:80px;float:left">Correspondente: </div><div style="margin:8px">';
mn_field('select', 'ED', 'ocr_Corresponsal', '', "SELECT CorrNumero AS ID, CorrNombre AS NAME FROM corresponsales
						INNER JOIN hd_detalletarifas ON dtr_Corresponsal = CorrNumero
						WHERE dtr_Pais = " . $_GET['RCNTR'] . "
						GROUP BY CorrNumero", ' ', '', '');
echo '</div>';

echo '<div style="margin:8px;clear:both;width:80px;float:left">Nome: </div><div style="margin:8px">';
mn_field('text', 'ED', 'ocr_Description', '', '40', '40', '', '');
echo '<div style="margin:8px;clear:both;width:200px;float:left">';
mn_field('button', 'ED', 'ocr_GO', 'Pesquisar', '', '', '', '" onclick="
		document.ReceiverProperties.action=\'_response/call.php?get=Operative/list_corragencies&vr1=\'+document.getElementById(\'ocr_Prov\').value+\'&vr2=\'+document.getElementById(\'ocr_Ciudad\').value+\'&vr3=\'+document.getElementById(\'ocr_Corresponsal\').value+\'&vr4=\'+document.getElementById(\'ocr_Description\').value;
		subform(\'ReceiverProperties\',\'AC_List\');');
mn_field('button', 'ED', 'ocr_GO', 'Fechar', '', '', '', '" onclick="
		Ext.getCmp(\'ofcor_search\').close();');
echo '</div>';